//
//  NSString+Helper.h
//  Kaagad Peso
//
//  Created by ZhengChengFeng on 2024/10/15.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface NSString (Helper)

+ (CGSize)textSizeWithText:(NSString *)textStr font:(UIFont*)font numberOfLines:(NSInteger)numberOfLines lineSpacing:(CGFloat)lineSpacing constrainedWidth:(CGFloat)constrainedWidth;

+ (NSAttributedString*)setText:(NSString*)text lineSpacing:(CGFloat)lineSpace font:(UIFont*)font withAlignment:(NSTextAlignment)alignment;

+ (NSString* )starsReplacedOfString:(NSString *)str withinRange:(NSRange)range;

+ (void)callTelPhoneNo:(NSString*)telNo;

+ (NSString *)currentDateWithFormat:(NSString *)format;

+ (NSString *)getNowTimeTimestamp:(NSString *)format;

+ (NSDictionary *)dictionaryWithJsonString:(NSString *)jsonString;

+ (NSData *)dictionaryToData:(NSDictionary *)dicJson;

+ (NSString *)dictionaryToJson:(NSDictionary *)dic;

+ (NSDictionary *)getObjectData:(id)obj;

- (NSMutableDictionary *)getURLParameters;

+ (CAShapeLayer *)UIBezierPathWithRect:(CGRect)rect withCorners:(UIRectCorner)corners withRadiu:(CGSize)cornerRadiu;

+ (NSString *)countNumForThreeformat:(NSString *)numStr;

@end

NS_ASSUME_NONNULL_END
